package com.itheima.threadsafetylock;

//取钱线程类
public class DrawThread extends Thread{

    private Account account;        //

    public DrawThread(String name, Account account) {
        super(name);
        this.account = account;
    }

    @Override
    public void run() {

        //取钱
        account.drawMoney(100000);

    }
}
